<template>
  <div>
    <AppHeader />
    <HomeChannel v-show="pathshow" />
    <router-view v-slot="{ Component }">
      <transition>
        <keep-alive>
          <component :is="Component"></component>
        </keep-alive>
      </transition>
    </router-view>
  </div>
</template>

<script setup lang="ts">
import AppHeader from "@/components/app-header.vue";
import HomeChannel from "@/views/Home/components/home-channel.vue";
import { computed } from "vue";
import { useRoute } from "vue-router";
const route = useRoute();
const pathshow = computed(() => {
  if (route.path === "/video") {
    return false;
  } else {
    return true;
  }
});
</script>

<style scoped lang="less"></style>
